package hui.zhang.web.action.base;

import java.util.List;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import hui.zhang.domain.base.TakeTime;
import hui.zhang.service.base.TakeTimeService;
import hui.zhang.utils.BaseAction;

@Controller
@ParentPackage("struts-default")
@Namespace("/")
@Scope("prototype")
@SuppressWarnings("all")
public class TakeTimeAction extends BaseAction<TakeTime> {

	@Autowired
	private TakeTimeService takeTimeService;
	
	@Action(value="taketime_findAll")
	public String findAll() {
		List<TakeTime> list = takeTimeService.findAll();
		toJsonAndResponse(list);
		return NONE;
	}
}
